package com.wangxiaonan.berry.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author: wangxiaonan
 * @Date: 2019/7/1
 **/
@Entity
@Table(name = "barn")
public class Barn implements Serializable {

    private static final long serialVersionUID = -1327444767391393802L;

    @Id
    @Column(name = "f_id", columnDefinition = "int(11) NOT NULL AUTO_INCREMENT COMMENT '编号'")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "f_type", columnDefinition = "varchar(100) DEFAULT NULL COMMENT '种类'")
    private String type;

    @Column(name = "f_cargo", columnDefinition = "text DEFAULT NULL COMMENT '货物'")
    private String cargo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCargo() {
        return cargo;
    }

    public void setCargo(String cargo) {
        this.cargo = cargo;
    }
}
